<style>
    body,.content{
        width: auto;
    }
    .table th, .table td {
        text-align: center;
        vertical-align: middle!important;
    }
    tr > td {
        border: 1px solid #000;
    }
</style>
<div class="panel panel-default panel-intro">

    <div class="panel-heading">
        <ul class="nav nav-tabs"></ul>
    </div>
    <div class="fixed-table-body">
        <div class="fixed-table-loading" style="top: 42px; display: none;">正在努力地加载数据中，请稍候……</div>
        <table id="table" class="table  table-bordered " style="width: 3000px">
            <thead>
            <caption>{$rows['title']}{$rows['cols_1']}积分</caption>
            <tr>
                <th>周次</th>
                <th>开会时间</th>
                <th>开会地区</th>
                <th width="100">地区分类（地级市/县级市）</th>
                <th>讲师</th>
                <th width="20">科目</th>
                <th>地区类别</th>
                <th>学校名称</th>
                <th width="100">外联姓名/老/新</th>
                <th>学校分类</th>
                <th style="width:100px">本地学校排名</th>
                <th>学校人数</th>
                <th>学校发书数量</th>
                <th>来人数</th>


                <th>跑学校来人积分（合跑不另加分）</th>
                <th>跑下学校来人率（来人数/学校人数）	</th>
                <th>销售积分	</th>
                <th>发书来人率积分	</th>
                <th>来人发书率（来人数/学校发书数）30%以上</th>
                <th>A类学校来人积分	</th>
                <th>新外联跑学校销售积分</th>
                <th>奖励积分</th>
                <th>外联积分合计</th>



                <th>周开场次积分</th>
                <th>应开会周不开会或开会不足</th>
                <th>周任务积分</th>
                <th>会场无事故积分</th>
                <th>学校建设积分</th>
                <th>关注积分</th>

                <th>取预定积分</th>
                <th>会后图书销售积分</th>
                <th>减分项</th>

            </tr>
            </thead>
            <tbody data-listidx="0">
            <?php for($i=0;$i<$tr;$i++){?>
            <tr>
                {if $i==0}
                <td rowspan="{$tr}">{$rows['cols_1']}</td>
                {/if}
                <?php
                    for($j=1;$j<=6;$j++){
                    if($cols = cols('cols_'.$j,$i,$arr)){

                ?>
                <td rowspan="<?php echo $cols['row'];?>"><?php echo $cols['val'];?></td>
                <?php
                   }
}
                ?>
                <td><?php echo $arr['cols_7'][$i];?></td>
                <td><?php echo $arr['cols_8'][$i];?></td>
                <td><?php echo $arr['cols_9'][$i];?></td>
                <td><?php echo $arr['cols_10'][$i];?></td>
                <td><?php echo $arr['cols_11'][$i];?></td>
                <td><?php echo $arr['cols_12'][$i];?></td>
                <td><?php echo $arr['cols_13'][$i];?></td>

                <td>{$jiba[$i]['lairen_jifen']}</td>
                <td>{$jiba[$i]['xuexiao']}</td>
                <td>{$jiba[$i]['order']}</td>
                <td>{$jiba[$i]['fashu_jifen']}</td>
                <td>{$jiba[$i]['fashu']}</td>
                <td>{$jiba[$i]['new_integral']}</td>
                <td>{$jiba[$i]['jiafen']}</td>
                <td>{$jiba[$i]['city']}</td>
                <td>{$jiba[$i]['lairen_jifen']+$jiba[$i]['new_integral']+$jiba[$i]['order']+$jiba[$i]['fashu_jifen']+$jiba[$i]['jiafen']+$jiba[$i]['city']}</td>

                {if $i==0}
                <td rowspan="{$tr}">{$rows['cols_2']}</td>
                <td rowspan="{$tr}">{$rows['cols_3']}</td>

                <td rowspan="{$tr}">{$rows['cols_4']}</td>
                <td rowspan="{$tr}">{$rows['cols_5']['arr']['index_1']}</td>
                <td rowspan="{$tr}">{$rows['cols_5']['arr']['index_2']}</td>
                <td rowspan="{$tr}">{$rows['cols_5']['arr']['index_3']}</td>
                <td rowspan="{$tr}">{$rows['cols_5']['arr']['index_4']}</td>
                <td rowspan="{$tr}">{$rows['cols_5']['arr']['index_5']}</td>
                <td rowspan="{$tr}">{$rows['cols_5']['arr']['index_6']}</td>

                {/if}

            </tr>

            <?php }?>
            <tr><td colspan="23" align="left">总积分: {$rows['cols_6']+$jibaTotal}公司积分+外联总积分</td></tr>
            </tbody>
        </table>
    </div>
</div>
<?php
?>